package com.hancheng;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.reactive.function.client.WebClient;

@EnableFeignClients
@SpringBootApplication
public class GoodsCloudApplication {

    public static void main(String[] args) {
        SpringApplication.run(GoodsCloudApplication.class, args);
    }

    /**
     * 响应式客户端
     *
     * @return {@link WebClient}
     * @date 2021-07-17 21:21
     */
    @Bean
    public WebClient webClient() {
        return WebClient.builder().build();
    }
}
